home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: miker3@ix.netcom.com (Mike Rubenstein)
- Newsgroups: comp.lang.c
- Subject: Re: i = atoi(NULL);
- Date: Tue, 09 Jan 1996 05:23:32 GMT
- Organization: Netcom
- Message-ID: <30f1fb1b.269185216@nntp.ix.netcom.com>
- References: <DKwCsG.IGD@cs.openu.ac.il>
- NNTP-Posting-Host: ix-dc13-04.ix.netcom.com
- X-NETCOM-Date: Mon Jan 08 9:22:49 PM PST 1996
- X-Newsreader: Forte Agent .99c/16.141
-
- shimoco@mail.tlm.openu.ac.il (Shimon Cohen) wrote:
-
- |>Hi !
- |>
- |>What ANSI C says about:
- |>i = atoi(NULL);
-
- ANSI says nothing specifically about this. It defines atoi as taking
- a pointer to a string. This means that atoi(NULL) results in
- undefined behavior (i.e., anything can happen).
-
-
- Michael M Rubenstein
-